-- GENERATED SPELL FOR [Gordok Captain] --


function spell0_11445(pUnit, Event) --@Dark Strike,n/a--
pUnit:FullCastSpellOnTarget(22574,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11445', 630, 1)
end

function spell1_11445(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(16244,pUnit)
pUnit:RegisterEvent('Sorts_11445', 30255, 1)
end

function spell2_11445(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(12096,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11445', 9500, 1)
end

function spell3_11445(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(22575,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11445', 661, 1)
end

function Sorts_11445(pUnit, Event)
local choix_sorts_11445 = math.random(0, 3)
if choix_sorts_11445 == 0 then
pUnit:RegisterEvent('spell0_11445', 1, 1)
end
if choix_sorts_11445 == 1 then
pUnit:RegisterEvent('spell1_11445', 1, 1)
end
if choix_sorts_11445 == 2 then
pUnit:RegisterEvent('spell2_11445', 1, 1)
end
if choix_sorts_11445 == 3 then
pUnit:RegisterEvent('spell3_11445', 1, 1)
end
end

function mob11445_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11445', math.random(1500, 3000), 1)
end

function mob11445_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11445_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11445_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11445, 1, 'mob11445_Action')
RegisterUnitEvent(11445, 2, 'mob11445_Leave')
RegisterUnitEvent(11445, 3, 'mob11445_Kill')
RegisterUnitEvent(11445, 4, 'mob11445_Die')
